package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.AgencyInfo;
import cn.wolfcode.crm.query.AgencyInfoQueryObject;

import java.util.List;

public interface AgencyInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AgencyInfo record);

    AgencyInfo selectByPrimaryKey(Long id);

    List<AgencyInfo> selectAll();

    int updateByPrimaryKey(AgencyInfo record);


    int queryForCount(AgencyInfoQueryObject qo);
    List<AgencyInfo> queryForList(AgencyInfoQueryObject qo);

    void changeState(Long id);
}